import request from '@/utils/request'

/**
 * 用户相关请求模块
 */

export function login (data) {
  return request({
    url: '/authorizations',
    method: 'post',
    data
  })
}
// 获取短信验证码
export function sendSms (mobile) {
  return request({
    url: `/sms/codes/${mobile}`,
    method: 'get'
  })
}
